package com.swak.devtools.apidoc.entity;

import java.util.Map;

import com.swak.utils.Maps;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 路由器
 * 
 * @author 618lf
 */
@Getter
@Setter
@Accessors(chain = true)
public class Apis {

	private Map<String, Api> routes = Maps.newOrderMap();

	public Apis addRoute(Api route) {
		routes.put(route.getId(), route);
		return this;
	}
}
